package com.liu.mysqldemo.service;

import com.liu.mysqldemo.entity.Person;

import java.util.List;
import java.util.Map;

public interface PersonService {

    Person addPerson(Person person);
    Person removePersonByid(Long id);
    Person removePerson(Person person);
    Person updatePerson(Person person);
    Person findPersonByid(Long id);
    Person findPersonByName(String name);
    List<Map> getUnionData(String name);
    List<Person> findAllpersonBypage(Integer pageIndex,Integer pageSize);
}
